package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.AtWho;

import java.util.List;

public interface AtWhoMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(AtWho record);

    AtWho selectByPrimaryKey(Long userId);

    List<AtWho> selectAll();

    int updateByPrimaryKey(AtWho record);

    int countNum(Long id);

    List<AtWho> selectAllNoReadAt(Long id);


    //将@变成已读
    void read(Long id);
    //查询评论里的@的数量
    int countComment(Long id);
    //将评论中的@变成已读
    void readComment(Long id);
}